import axios from 'axios'
let api = 'http://127.0.0.1:800/client'

const asymeth = {
  async questionList() {
    let page = Math.floor(Math.random() * 32)
    return await axios.post(`${api}/question/barrier`, { page })
  },
  // 生涯模式获取所有题目
  async getBareerQuestionList(params) {
    return await axios.post(`${api}/question/CareerList`, params)
  },

  async loadMoreQuestion(params) {
    return await axios.post(`${api}/question/CareerList`, params)
  },

  async getType() {
    return await axios.get(`${api}/question/allType`)
  },

  async setTypeQuestionList(params) {
    return await axios.post(`${api}/question/typeQuestion`, params)
  },

  async getUserAgreement(params) {},
}

export default asymeth
